<?php
namespace app\api\model;

use think\Model;

class TechnTime extends Base{
    protected $name = 'techn_time';

    // 获取器
    public function getTimeTypeAttr($val){
        $type = [1 => '上午', 2 => '下午'];
        return $type[$val];
    }
}